package Spil;

public class Terning {
	private final int MAX = 6;
	private int terningVaerdi;
	
	public Terning() {
		terningVaerdi = 1;
	}
	
	public int roll() {
		terningVaerdi = (int)(Math.random()* MAX) + 1;
		return terningVaerdi;
	}
	public void setTerningVaerdi (int vaerdi) {
		terningVaerdi = vaerdi;
	}
	public int getTerningVaerdi() {
		return terningVaerdi;
	}
	// Test
}